<?php  include  $this->admin_tpl('header'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo JS_PATH;?>EasyUI/themes/haidaoblue/easyui.css">
<link rel="stylesheet" type="text/css" href="<?php echo JS_PATH;?>EasyUI/themes/icon.css">
<script type="text/javascript" src="<?php echo JS_PATH;?>EasyUI/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>EasyUI/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>EasyUI/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>EasyUI/hd_default_config.js"></script>
<div class="content">
  <style type="text/css">
.tabs{ width: 100%;}
#set_data dt{ margin-bottom: 10px;}
.tb{ width:500px!important;
    border-collapse: collapse;
    border-spacing: 1px;
}
.tb td{ padding: 5px; background-color: #EEEEEE!important; }
.ipt{ width: 100px; height: 20px; line-height: 20px; padding: 3px; border:1px solid #ddd; color: #666;}
	</style>
  <div class="site"> <?php echo C('site_name')?> <a href="#">等级数量</a></div>
  <span class="line_white"></span>
  <div class="login mt10" style="border: none;border-right: 1px solid #e6e6e6;"> 
    <form action="<?php echo U('Admin/Level/index') ?>" method="post">
      <dl id="set_data">
        <dd>
<p>各等级可最多拥有魔盒数量</p>          

		  <table class="tb">
			<tr><th>会员等级</th><th>高级魔盒</th><th>中级魔盒</th><th>初级魔盒</th><th>迷你魔盒</th></tr>
            




            <?php $maxhas =  C('maxhas');
              
// p($maxhas);


              foreach ($maxhas as $key => $value) {

            ?>
			<tr>
				<td><input type="text"  name='maxhas[<?php echo $key;?>][level]' value='<?php echo $value[level]; ?>' datatype="*" class="ipt"   /></td>
				<td><input type="text"  name='maxhas[<?php echo $key;?>][4]' value='<?php echo $value[4]; ?>' datatype="*" class="ipt"   /></td>
				<td><input type="text"  name='maxhas[<?php echo $key;?>][3]' value='<?php echo $value[3]; ?>' datatype="*" class="ipt"    /></td>
				<td><input type="text"  name='maxhas[<?php echo $key;?>][2]' value='<?php echo $value[2]; ?>' datatype="*" class="ipt"  /></td>
				<td><input type="text"  name='maxhas[<?php echo $key;?>][1]' value='<?php echo $value[1]; ?>' datatype="*" class="ipt"  /></td>

			</tr>
		  
	            <?php    
              }
            ?>	  
		  
		  
		  
		  
		  </table>

		




          <li>请勿随意改动</li>

        </dd>
      </dl>
      <div class="input1" style="clear:both; padding-top:10px;">
        <input type="submit" value="提交" class="button_search" />
      </div>
    </form>
    <div class="clear"></div>
  </div>
</div>
<div class="clear"></div>
<?php include $this->admin_tpl('copyright') ?>
<?php echo jsfile('hddate');?> 
<script>
	$(function() {
		var start = {
		    elem: '#start',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    //min: laydate.now(), //设定最小日期为当前日期
		    max: '2099-06-16 23:59:59', //最大日期
		    istime: true,
		    istoday: true,
		    choose: function(datas){
		         end.min = datas; //开始日选好后，重置结束日的最小日期
		         end.start = datas //将结束日的初始值设定为开始日
		    }
		};
		var end = {
		    elem: '#end',
		    format: 'YYYY-MM-DD hh:mm:ss',
		    min: laydate.now(),
		    max: '2099-06-16 23:59:59',
		    istime: true,
		    istoday: true,
		    choose: function(datas){
		        start.max = datas; //结束日选好后，重置开始日的最大日期
		    }
		};
		laydate(start);
		laydate(end);
	});
	</script>